export default [
    {
        path :  '/system',
        meta :  { permission : 'sys' },
        component : () => import(/* webpackChunkName: "layout" */ "../../components/layout/BasicLayout"),
        children :  [
            {
                path :  'route',
                name : 'dynamicRoute',
                meta :  { title : '动态路由',permission : 'sys.gateway' },
                component : () => import(/* webpackChunkName: "system" */ "../../views/system/DynamicRoute"),
                children : [
                    {
                        path : 'add',
                        name : 'addRoute',
                        meta :  { title : '添加路由配置',permission : 'sys.gateway.add' },
                        component : () => import(/* webpackChunkName: "system" */ "../../views/system/route/AddRoute"),
                    }, {
                        path : 'edit/:routeId',
                        name : 'editRoute',
                        meta :  { title : '修改路由配置',permission : 'sys.gateway.edit' },
                        component : () => import(/* webpackChunkName: "system" */ "../../views/system/route/EditRoute"),
                    },
                ]
            }
        ]
    }
];
